import App from './App';
import mainPackage from '@/mainPackage';
import config  from '@/config'; 
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

Vue.config.productionTip = false
App.mpType = 'app'
Vue.use(mainPackage,{
  api: {
    ...config.api,
    modules:[
      'user'
    ],
  },
  methods:['user'],
  computeds:['user'],
  filters:[],
  store:{
    modules:['user']
  }
});
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif